package cn.fresh.xuanyuan.module.infra.dto;


import lombok.Data;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotBlank;


@Data
public class MallColumnFormDto {

    /**
     * 参数主键
     */

    private Integer id;

    @NotBlank(message = "栏目名称不能为空")
    @Length(min = 2, max = 10, message = "栏目名称长度在2-10字符之间")
    private String title;

    private String icon;

    @NotBlank(message = "栏目类型不能为空")
    @Length(min = 2, max = 10, message = "类型不正确")
    private String type;

    private Integer sort;

    private Integer status;

    private String remark;

}
